<!-- 底部 版权 -->
<template>
  <div class="footer_bars">
    {{ copyright }} 
  </div>
</template>

<script>
export default {
  name: 'header-view',
  data() {
    return {
      // 标题
      copyright: ''
    }
  },
  created: function () {
    this.getCopyright()
  },
  methods: {
    getCopyright() {
      sa.ajax('/prop/getByClazzCode', { clazzCode: 'COPYRIGHT' }, function (res) {
        if (res.code === 200) {
          if (res.data) {
            this.copyright = res.data[0].val
          }
        } else {
          sa.error("未获取到数据！");
        }
      }.bind(this), {
        type: 'get'
      });
    },
  }
}
</script>

<style scoped>
.footer_bars {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 30px;
  width: 100%;
  color: #b6b6b6;
  box-shadow: 0px 0px 3px 3px #ffffff;
}
</style>